class WlesjyxxesController < ApplicationController
  before_action :set_wlesjyxx, only: [:show, :edit, :update, :destroy]

  # GET /wlesjyxxes
  # GET /wlesjyxxes.json
  def index
    @wlesjyxxes = Wlesjyxx.all
  end

  # GET /wlesjyxxes/1
  # GET /wlesjyxxes/1.json
  def show
  end

  # GET /wlesjyxxes/new
  def new
    @wlesjyxx = Wlesjyxx.new
  end

  # GET /wlesjyxxes/1/edit
  def edit
  end

  # POST /wlesjyxxes
  # POST /wlesjyxxes.json
  def create
    @wlesjyxx = Wlesjyxx.new(wlesjyxx_params)

    respond_to do |format|
      if @wlesjyxx.save
        format.html { redirect_to @wlesjyxx, notice: 'Wlesjyxx was successfully created.' }
        format.json { render :show, status: :created, location: @wlesjyxx }
      else
        format.html { render :new }
        format.json { render json: @wlesjyxx.errors, status: :unprocessable_entity }
      end
    end
  end

  # PATCH/PUT /wlesjyxxes/1
  # PATCH/PUT /wlesjyxxes/1.json
  def update
    respond_to do |format|
      if @wlesjyxx.update(wlesjyxx_params)
        format.html { redirect_to @wlesjyxx, notice: 'Wlesjyxx was successfully updated.' }
        format.json { render :show, status: :ok, location: @wlesjyxx }
      else
        format.html { render :edit }
        format.json { render json: @wlesjyxx.errors, status: :unprocessable_entity }
      end
    end
  end

  # DELETE /wlesjyxxes/1
  # DELETE /wlesjyxxes/1.json
  def destroy
    @wlesjyxx.destroy
    respond_to do |format|
      format.html { redirect_to wlesjyxxes_url }
      format.json { head :no_content }
    end
  end

  private
    # Use callbacks to share common setup or constraints between actions.
    def set_wlesjyxx
      @wlesjyxx = Wlesjyxx.find(params[:id])
    end

    # Never trust parameters from the scary internet, only allow the white list through.
    def wlesjyxx_params
      params.require(:wlesjyxx).permit(:BT, :SSDQ, :LXR, :QQ, :EMAIL, :XXNR, :LXDH, :SSJG, :JYFS, :WZ, :XXLY, :XXFBSJ, :SJCJDW, :SJCJDWDM, :BZ)
    end
end
